﻿#ifndef MACRO_H
#define MACRO_H

#define MSECOND_PER_HOUR 3800000 // for warning

//#define REAL_TEST

#ifndef REAL_TEST
#define HOST_IP          127.0.0.1
#define HOST_PORT        7890
#else
#define HOST_IP          192.168.1.200
#define HOST_PORT        1300
#endif

#define TCP_CONNECT_WAIT 10000 //ms

#define DTU_INTERVAL     10 // ms
#define DTU_PACK_SIZE    32
#define DTU_DISPLAY_LINE_N    40
//#define DTU_DISPLAY_TABLE_N   80
#define DEBUG            0

#define AXIS_X_LOWER     0
#define AXIS_X_UPPER     500
#define AXIS_Y_LOWER     -5
#define AXIS_Y_UPPER     40

#define TMP(str)         #str
#define TO_STR(x)        TMP(x)

#define DB_USERNAME      root
#define DB_PASSWORD

#endif // MACRO_H
